from pymongo import MongoClient
client = MongoClient('mongodb://116.62.163.101:27017/')
db = client.yx

import datetime
post = {"author": "Mike",
        "text": "My first blog post!",
        "tags": ["mongodb", "python", "pymongo"],
        "date": datetime.datetime.utcnow()}

posts = db.posts
post_id = posts.insert_one(post).inserted_id
print(post_id)

# from py2neo import Graph
# # http://116.62.163.101:7474
# from config import Neo4j

# graph_1 = Graph()
# graph_2 = Graph(host="localhost")
# graph_3 = Graph("http://localhost:7474/db/data/")


# g = Graph(
#             # host="127.0.0.1",
#             # http_port=7474,
#             # user="lhy",
#             # password="lhy123"
#             scheme=Neo4j.scheme, host=Neo4j.host, port=Neo4j.port, user=Neo4j.user, password=Neo4j.password
#         )